#include "armors.h"

cArmor::cArmor()
{

}

cArmor::cArmor( string name, string desc, int type, int value, int ac, int prot, bool magic, bool twoh, bool heavy, bool sell )
{

}

cArmor::~cArmor() {}

bool cArmor::Use(string sAction)
{
	const char *tmp = sAction.c_str();
	switch (mType) // mType 0 is body, 1 is helm, 2 is greaves, 3 is boots, 4 is shoulders, 5 is leggings, 6 is belt, 7 is ring, 8 is charm, 9 is cape
	{
	case 0: // body
		switch(*tmp)
		{
			// add code based on actions	
		}
		break;
	case 1: // helm
		switch(*tmp)
		{
			// add code based on actions	
		}
		break;
	case 2: // greaves
		switch(*tmp)
		{
			// add code based on actions	
		}
		break;
	case 3: // boots
		switch(*tmp)
		{
			// add code based on actions	
		}
		break;
	case 4: // shoulders
		switch(*tmp)
		{
			// add code based on actions	
		}
		break;
	case 5: // leggings 
		switch(*tmp)
		{
			// add code based on actions	
		}
		break;
	case 6: // belt
		switch(*tmp)
		{
			// add code based on actions	
		}
		break;
	case 7: // ring
		switch(*tmp)
		{
			// add code based on actions	
		}
		break;
	case 8: // charm
		switch(*tmp)
		{
			// add code based on actions	
		}
		break;
	case 9: // cape
		switch(*tmp)
		{
			// add code based on actions	
		}
		break;
	default:
		break;
	}
	return false; // shouldn't get here...
}
